﻿/*
 * Copyright (c) 2020-2025, Qingdao Digital Intelligent Ship & Ocean Technology Co., Ltd.
 * All rights reserved.
 *
 * This file is part of FastCAE and is distributed under the terms of the
 * BSD 3-Clause License. See the LICENSE file in the project root for details.
 */

#include "FITKPHengLEIGeneralControl.h"
#include "FITK_Kernel/FITKEasyParam/FITKParameter.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"

namespace Interface
{
	FITKPHengLEIGeneralControl::FITKPHengLEIGeneralControl()
	{
		_additionalControl = new Core::FITKParameter;
	}

	FITKPHengLEIGeneralControl::~FITKPHengLEIGeneralControl()
	{
		if (_additionalControl) delete _additionalControl;
	}

	Core::FITKParameter * FITKPHengLEIGeneralControl::getGeneralControlAdditionalData()
	{
		return _additionalControl;
	}

	void FITKPHengLEIGeneralControl::setGeneralControlAdditionalData(Core::FITKParameter * data)
	{
		if (_additionalControl && _additionalControl != data) delete _additionalControl;
		_additionalControl = data;
	}
}
